<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>南开大学软件工程课程后台管理系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="./js/exercises.js"></script>
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>

		<table>
				<s:iterator var="exer" value="#exers" status="status">
				<form>
					<tr>
						<td>
							<s:property value="question" />
						</td>
					<tr>
						<td>
							<s:iterator var="option" value="#exer.options" status="st">
								<input type="radio" name="${ exer.id}" value="${ id}" />
								<s:if test="#st.count==1">A.</s:if>
								<s:if test="#st.count==2">B.</s:if>
								<s:if test="#st.count==3">C.</s:if>
								<s:if test="#st.count==4">D.</s:if>
								<s:property value="option" />
								<br>
							</s:iterator>
					<tr>
						<td>
							<div id="result${ status.count}"></div>
						</td>
					</tr>
				</form>
				</s:iterator>
			<tr>
				<td>
					<input type="button" value="提交" onclick="readExer()">
				</td>
			</tr>
		</table>

	</body>
</html>
